public class MultipleThreads {
	public static void main(String [] args){
		System.out.println("The main thread of execution started");
		//
		RunCounter1 ct1 = new RunCounter1("First thread");
		RunCounter1 ct2 = new RunCounter1("Second thread");
		RunCounter1 ct3 = new RunCounter1("Third thread");
		RunCounter1 ct4 = new RunCounter1("Fourth thread");
		RunCounter1 ct5 = new RunCounter1("Fifth thread");
		RunCounter1 ct6 = new RunCounter1("Sixth thread");
	}
}
class RunCounter1 implements Runnable {
	
	Thread myThread;
	RunCounter1 (String name){
		myThread = new Thread(this, name);
		myThread.start();
	}
	
	public void run() {
		for ( int i=1; i<=5; i++){
			System.out.println("Thread: " + myThread.getName() + " Count: " + i);
		}
	}
}

